package edu.zut.pioneer.staff.domain;

import edu.zut.pioneer.base.domain.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.Table;

@Entity
@Table(name="staff")
public class Staff extends BaseEntity<Long> {


        @Column(name="name")
        private String name;
        @JoinColumn(name = "staff_type_id")
        @Column(name="Staff_type_id")
        private long type_id;


        public Staff(){}

        public Staff(String name, long type_id) {
            this.name = name;
            this.type_id = type_id;
        }

        @Override
        public String toString() {
            return "Store{" +"name='" + name + '\'' + ", type_id='" + type_id +'}';
        }

        public String getName() {
            return name;
        }

        public long getType_id() {
            return type_id;
        }

        public void setName(String name) {
            this.name = name;
        }

        public void setType_id(long type_id) {
            this.type_id = type_id;
        }


}
